﻿$(document).on("pageInit", "#cource-student-list", function (e, id, page) {
    loadList();

    function loadList() {
        $(page).find("#list").empty();
        $.getJSON("/Student/GetStudentList", { courceId: $(page).find('#courceId').html() }, function (response) {
            $.each(response, function (index, item) {
                var frame = $('<li class="cource-item" data-notice-id="' + item.Id + '">\
                    <div class="item-content">\
                        <div class="item-inner">\
                            <div class="item-title-row">\
                                <div class="item-title">' + item.RealName + '(' + item.StuNo + ')</div>\
                            </div>\
                            <div class="item-subtitle">班级：' + item.ClazzName + '</div>\
                            <div class="item-subtitle">课程：' + item.CourceName + '</div>\
                        </div>\
                    </div>\
                </li>');
                $(page).find("#list").append(frame);
            });
        });
    }

   
});